<div class="basketContainer">
    <div class="basket">
        <h3 class="basketTitle">Order</h3>
        <?php if($basket->count() > 0): ?>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Product</th>
                    <th>Number</th>
                    <th>Price</th>
                    <th>Total cost</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($basket->toArray() as $key => $element): ?>
                <tr>
                    <th><?php echo($key); ?></th>
                    <td><?php echo($element->getProduct()->getName()); ?> </td>
                    <td><?php echo($element->getCount()); ?></td>
                    <td><?php echo($element->getProduct()->getPrice()); ?></td>
                    <td><?php echo($element->getValue()); ?></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <?php else: ?>
            You don't have any element in basket.
        <?php endif; ?>
    </div>
    <div class="center marginBottom">
        <button class="centerBtn">Reset</button>
    </div>
    <textarea class="form-control commentContainer" rows="3" placeholder="Comment..."></textarea>
</div>

<div class="editUserInfoContainer">
    <div class="basket">
        <h3 class="basketTitle">Edit</h3>
        <table class="table table-striped">
            <tbody>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="Name"></td>
                </tr>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="Surname"></td>
                </tr>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="Zip code"></td>
                </tr>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="City"></td>
                </tr>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="Street"></td>
                </tr>
                <tr>
                    <td><input type="text" class="form-control contactName" placeholder="Phone"></td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="center">
        <button id="saveUserInfo" class="centerBtn">Save</button>
    </div>
</div>

<div class="userInfoContainer">
    <div class="basket">
        <h3 class="basketTitle">Delivery address <span id="editUserInfo" class="glyphicon glyphicon-pencil" data-toggle="tooltip" data-placement="right" title="Edit"></span></h3>
        <?php if ($deliveryData): ?>
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <th>Name</th>
                        <td><?php echo($deliveryData->getName()); ?></td>
                    </tr>
                    <tr>
                        <th>Surname</th>
                        <td><?php echo($deliveryData->getSurname()); ?></td>
                    </tr>
                    <tr>
                        <th>Adress</th>
                        <td><?php echo($deliveryData->getAdress()); ?></td>
                    </tr>
                    <tr>
                        <th>Telephone</th>
                        <td><?php echo($deliveryData->getTelephone()); ?></td>
                    </tr>
                    <tr>
                        <th>Birthday</th>
                        <td><?php echo($deliveryData->getBirthday()); ?></td>
                    </tr>
                </tbody>
            </table>
        <?php else: ?>
            You have to login.
        <?php endif; ?>
    </div>
</div>



<div class="center marginBottom">
    <button class="centerBtn">Accept</button>
</div>